/*

package cn.conac.as.push.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;


*/
/**
 * Created by liuwei on 2017-7-4.
 *//*


@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter{

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
                .authorizeRequests()
                .antMatchers("/bdtlaw/messagesp/index/home2","/bdtlaw/messagesp/index/login","/bdtlaw/messagesp/index/static*/
/**").permitAll()
                .anyRequest().authenticated()
                .and()
                .formLogin()
                .loginPage("/bdtlaw/messagesp/index/home2")
                .permitAll()
                .and()
                .logout()
                .permitAll();
    }

    @Autowired
    public void configureGlobalSecurity(AuthenticationManagerBuilder auth) throws Exception {
        auth
                .inMemoryAuthentication()
                .withUser("云平台").password("password").roles("USER");


*/
/*  @Override
   protected void configure(AuthenticationManagerBuilder auth) throws Exception {
       auth.userDetailsService(inMemoryUserDetailsManager());
   }

    @Bean
    public InMemoryUserDetailsManager inMemoryUserDetailsManager() {
        final Properties users = new Properties();
        users.put("云平台","123"); //add whatever other user you need
        return new InMemoryUserDetailsManager(users);
    }
*//*


    }
}*/
